from optparse import make_option
from django.core.management.base import BaseCommand
from blw.settings import MEDIA_ROOT
from crawler.models import Crawler

class Command(BaseCommand):
    option_list = BaseCommand.option_list + (
        make_option('--long', '-l', dest='long',
            help='Help for the long options'),
    )
    help = 'Help text goes here'

    def handle(self, **options):
        print MEDIA_ROOT
        print "crawler computrabajo.com"
        computrabajo = Crawler()
        computrabajo.begin('/bt-ofr-','/bt-ofrd-')       
